<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
			<script>
					var a=["马晓波","杨俊杰","赵云峰","陈爸爸","朱学逢","董凯"]
					var b=null;
					var c=[]
					var d=null;
					var f=null;
					function start(){
						f=Math.floor(Math.random()*a.length);
						d=a[f];
						let e=document.getElementsByTagName("div")[0];
						e.innerHTML=d;
					}
				function go(){
					let e=document.getElementsByTagName("input")[0];
					if(e.value=="start"){
						e.value="结束";
						b=setInterval(start,10);
					}else{
						e.value="start";
						clearInterval(b);
						c[c.length]=d;
						a.splice(f,1);
						document.getElementsByTagName("p")[0].innerHTML=c.toString();
					}
				}
				</script>
	</head>
	<body>
			<input type="button" value="start" onclick="go()">
				<div></div>
				<p></p>
	</body>
</html>